@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Manrope:wght@200..800&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@import url(./homepage.css);
@import url(./brand.css);
@import url(./realizzazioni.css);
@import url(./contacts.css);
@import url(./catalogo.css);
@import url(./galleria-foto.css);
@import url(./policy.css);

/* VARIABILI */

:root {
  --main-red: rgb(166, 0, 0);
  --main-black: black;
  --main-grey: #f8f9fa;
  --main-grey-dark: #3b3b3b;

  --main-title: 2vw;
  --main-text-: 1.1vw;


  --mobile-title: 30px;
  --mobile-text-small: 15px;
  --mobile-text-btn: 18px;
  --mobile-padding-btn: 1% 5%;

  --border-radius-small: 3px;
}

* {
  font-weight: 300 !important;
  font-family: "Manrope", sans-serif !important;
}



/*  ------------------------------- */

/* RIDIMENSIONAMENTO "COVER" DI TUTTE LE HERO + RIMOZIONE MARGINE A TUTTI GLI SLIDER + RIMOZIONE TITLE ALL' HOVER DELL IMG*/

.ms-image img {
  object-fit: cover !important;

}

.ml-slider {
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.flexslider img {
  pointer-events: none;
}

/*  ------------------------------- */


/* HEADER STICKY */

/* Header sticky trasparente */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
  background: transparent;
}

/* Logo */
.logo img {
  background-color: #fdfdfd66;
  height: 50px;
  width: 280px;
  object-fit: cover;
  cursor: pointer;
  border-radius: var(--border-radius-small);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background-color: #3b3b3b4f;
  padding: 1%;
  border-radius: var(--border-radius-small);
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: white;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Overlay full screen */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 999;
}

.nav-overlay ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.nav-overlay li {
  margin: 20px 0;
}

.nav-overlay a {
  text-decoration: none;
  color: black;
  font-size: 3rem;
}

.nav-overlay a.active {
  color: var(--main-red);
  border-bottom: 1px solid var(--main-red);
}

/* Quando menu aperto */
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}


.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* animazioni del menu */

.nav-overlay a {
  position: relative;
  text-decoration: none;
}

.nav-overlay a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-red);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}


/*  ------------------------------- */

/*  EFFETTO CAMBIO COLORE PULSANTI */


.btn-dual {
  position: relative;
  overflow: hidden;
}

.btn-dual span {
  position: relative;
  z-index: 1;
}

.btn-dual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 50%;
  /* metà altezza */
  background: var(--main-red);
  transition: width 0.5s ease;
  z-index: 0;
}


.btn-dual::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 50%;
  /* metà altezza */
  background: var(--main-red);
  transition: width 0.5s ease;
  z-index: 0;
}


.btn-dual:hover::before,
.btn-dual:active::before {
  width: 100%;
}

.btn-dual:hover::after,
.btn-dual:active::after {
  width: 100%;
}

.btn-dual.auto-animate::after,
.btn-dual.auto-animate::before {
  width: 100%;
}

/*  ------------------------------- */

/* FOOTER */

a[aria-current="page"] {
  background-color: white;
}

#block-16 a {
  color: white;
}




/*  ------------------------------- */


@media (max-width: 768px) {

  /* HEADER STICKY */

  .header {
    padding: 20px 10px;
  }

  .logo img {
    width: 200px;
  }


  .hamburger {
    padding: 15px;
  }

  /*  EFFETTO CAMBIO COLORE PULSANTI */

  .btn-dual::before,
  .btn-dual::after {
    transition: width 1s ease;
  }

  /* FOOTER */

  #block-11 p {

    text-align: center;

  }

  div[data-column="widget-area-6"] {
    align-items: center !important;
  }

}